/*
 * Copyright 2007 Robert Hanson <iamroberthanson AT gmail.com>
 * Copyright 2009 Matias Kruk <kruk.matias AT gmail.com>
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *    http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.hod.client.backend.orm.rebind;

public class FieldProperties
{
    private String column;
    private String fieldName;
    private String getterName;
    private String setterName;

    private String columnType;
    private String javaType;
    private int precision;
    private int scale;

    
    private boolean isIdentifier;
    private boolean isForeignKey;
    private String references;

    

    public String getColumn ()
    {
        return column;
    }

    public void setColumn (String column)
    {
        this.column = column;
    }

    public boolean isIdentifier ()
    {
        return isIdentifier;
    }

    public void setIdentifier (boolean isIdentifier)
    {
        this.isIdentifier = isIdentifier;
    }

    public int getPrecision ()
    {
        return precision;
    }

    public void setPrecision (int length)
    {
        this.precision = length;
    }

    public int getScale ()
    {
        return scale;
    }

    public void setScale (int precision)
    {
        this.scale = precision;
    }

    public String getColumnType ()
    {
        return columnType;
    }

    public void setColumnType (String type)
    {
        this.columnType = type;
    }

    public String getFieldName ()
    {
        return fieldName;
    }

    public void setFieldName (String fieldName)
    {
        this.fieldName = fieldName;
    }

    public String getGetterName ()
    {
        return getterName;
    }

    public void setGetterName (String getterName)
    {
        this.getterName = getterName;
    }

    public String getSetterName ()
    {
        return setterName;
    }

    public void setSetterName (String setterName)
    {
        this.setterName = setterName;
    }

    public String getJavaType ()
    {
        return javaType;
    }

    public void setJavaType (String javaType)
    {
        this.javaType = javaType;
    }

	public void setForeignKey(boolean isForeignKey) {
		this.isForeignKey = isForeignKey;
	}

	public boolean isForeignKey() {
		return isForeignKey;
	}

	public void setReferences(String references) {
		this.references = references;
	}

	public String getReferences() {
		return references;
	}
}
